import React from 'react';
import ReactDOM from 'react-dom';

import { BrowserRouter as Router, Route} from 'react-router-dom';
import {getQueryString} from './utils/util';

import Index from './pages/Index';
import Share from './pages/Share';
import Answer from './pages/Answer';
import Bind from './pages/Bind';

class BaseRouter extends React.Component{
    render () {
        return (
            <Router>
                <div style={{height:'100%'}}>
                    <Route path="/index" component={Index} />
                    <Route path="/share" component={Share} />
                    <Route path="/answer" component={Answer} />
                    <Route path="/bind" component={Bind} />
                </div>
            </Router>
        );
    }
}

ReactDOM.render(<BaseRouter />, document.getElementById('root'));
